
#ifndef __PARTICLE_H
#define __PARTICLE_H

#include "object.h"

class Particle : public Object
{
// Member Functions
public:
	Particle(float life);
	Particle(float life, float x, float y, float z);
	Particle(float life,
			 float x, float y, float z,
			 float dx,float dy,float dz);
	~Particle(void);

	bool update(float etime);
	virtual void draw(Vector4 *camPos, Vector4 *camRot) = 0;
	void init(float life);
	void translateXYZ(float x, float y, float z);
protected:
private:

// Member Variables
public:
	Vector4 lastPos;
	bool destroy;
protected:
private:
	float lifespan;
};

#endif //__PARTICLE_H